/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.text.NumberFormat;
import java.time.LocalDate;
import java.time.Month;
import java.util.Calendar;

/**
 * <p>Project: jse2302 - Ex1
 * <p>Powered by webrx On 2023-06-12 16:16:21
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Ex1 {
    public static void main(String[] args) {
        LocalDate now = LocalDate.now();
        Month month = now.getMonth();
        month.minus(1);
        int value = month.getValue();
        System.out.println(value);

        NumberFormat nf = NumberFormat.getPercentInstance();
        System.out.println(nf.format(1));
        System.out.println(nf.format(.2));
        System.out.println(nf.format(Math.random()));

    }
}
